package com.hzqy.service.special;

import java.util.List;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.hzqy.persistence.dao.special.SpecialDao;
import com.hzqy.service.core.GenericServiceBean;
import com.hzqy.web.vo.PmsUserVo;
import com.hzqy.web.vo.special.SpecialInfoVo;
import com.hzqy.web.vo.special.SpecialViewVo;

@Service
public class SpecialServiceBean extends GenericServiceBean<PmsUserVo,SpecialDao, Integer>{
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	
	@Resource
	private SpecialDao specialDao;
	@Override
	public SpecialDao getEntityDao() {
		return specialDao;
	}
	public SpecialInfoVo selectSpecial(String specialid) {
		SpecialInfoVo specialInfoVo=specialDao.selectSpecial(specialid);
		List<SpecialViewVo> list=specialDao.selectSpecialViewList(specialid);
		specialInfoVo.setViewVoList(list);
		return specialInfoVo;
	}
	
	

}
